package com.yxp.webtest.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

@Controller
public class HelloJsonController {

    @RequestMapping("/helloJson")
    @ResponseBody
    public Map<String, String> helloMvc() {
        Map<String, String> result = new HashMap<>();
        result.put("test1", "set1");
        result.put("test2", "set2");
        return result;
    }
}
